package com.yan.work.domain;

import com.yan.work.inter.Movement;

public class Man extends People implements Movement {
    public Man(String name, String country) {
        super(name, country);
    }
    @Override
    void speak(String str) {
        System.out.println("姓名为"+name+"的"+country+"人再说着"+str+"");
    }

    @Override
    public void exercise() {
        System.out.println(""+name+"正在锻炼中！");
    }

    public void life(){
        speak("中国话");
        exercise();
    }
}
